<template>
  <div/>
</template>

<script>
import Tucao from '../utils/tucao'

export default {
  created() {
    var openid = this.$route.query.openid;
    var nickname = this.$route.query.nickname;
    let avatar = this.$route.query.avatar;
    if (!avatar || avatar === '') {
        avatar = 'https://tucao.qq.com/static/desktop/img/products/def-product-logo.png';
    }
    var data = {
      "nickname": nickname,
      "avatar": avatar,
      "openid": openid,
    },
    productId = 87337;
    Tucao.request(productId, data);
  }
}
</script>
